{% extends "toast/base.template.html" %}

{% block breadcrumbs %}
	<li><a href="/toast/meeting/view/{{ attendance.meeting.id }}">{{ attendance.meeting.name }}</a> <span class="divider">/</span></li>
	<li><a href="/toast/attendance/view/{{ attendance.id }}">{{ attendance.member.first_name_first }}</a> <span class="divider">/</span></li>
	<li class="active">Edit</li>
{% endblock %}


{% block sidecontent %}
	<div class="btn-toolbar">
		<div class="btn-group">
			<a class="btn" href="/toast/attendance/view/{{ attendance.id }}">View</a>
			<a class="btn active" href="/toast/attendance/edit/{{ attendance.id }}">Edit</a>
			<a class="btn" href="/toast/attendance/delete/{{ attendance.id }}">Delete</a>
		</div>
	</div>

	<h4>Attendance</h4>
	<p class="divider"></p>
	<h5>{{ attendance.member.first_name_first }}</h5>
	<p>Meeting: {{ attendance.meeting.name }}</p>
{% endblock %}

{% block content %}
	<form method="POST" class="form-inline">
	{% csrf_token %}
	
		{{ form.member }}
		
		{{ form.role }}

		<input type="hidden" name="meeting" value="{{ attendance.meeting.id }}" />
		<input class="btn btn-primary" type="submit" name="attendance_edit" value="Save Changes" />

	</form>
{% endblock %}